<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.CategoryTemplatesControl"
    CodeBehind="CategoryTemplates.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-content.png" alt="Category Templates" />
        Manage Category Templates
    </div>
    <div class="options">
        <input type="button" onclick="location.href='CategoryTemplateAdd.aspx'" value="Add new"
            id="btnAddNew" class="adminButtonBlue" title="Add a new category template" />
    </div>
</div>
<asp:GridView ID="gvCategoryTemplates" runat="server" AutoGenerateColumns="False"
    Width="100%">
    <Columns>
        <asp:BoundField DataField="CategoryTemplateID" HeaderText="CategoryTemplateID" Visible="False">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="60%">
            <ItemTemplate>
                <a href="CategoryTemplateDetails.aspx?CategoryTemplateID=<%#Eval("CategoryTemplateID")%>"
                    title="Edit category template">
                    <%#Server.HtmlEncode(Eval("Name").ToString())%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Display Order" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <%#Eval("DisplayOrder")%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="CategoryTemplateDetails.aspx?CategoryTemplateID=<%#Eval("CategoryTemplateID")%>"
                    title="Edit category template">Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
